package com.example.rdcproject.ving.notes.entity;


import java.time.LocalDateTime;

// 公告类
public class Announcement {
    private int id;          //对公告设置id，方便管理
    private String title;
    private String content;  //公告内容
    private LocalDateTime publishTime;

    public Announcement(){}

    public Announcement(int id, String title, String content, LocalDateTime publishTime) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.publishTime = publishTime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(LocalDateTime publishTime) {
        this.publishTime = publishTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(int id, String content) {
        this.content = content;
    }

}
